﻿#include "lvgl_power_off.h"
#include "lvgl_power_off_anim.h"


#if 1
#define lvgl_power_off_debug(format, ...) lvgl_project_debug("[lvgl power off]-",format,##__VA_ARGS__);
#else
#define lvgl_power_off_debug(format, ...) ;
#endif



__lvgl_power_off_data lvgl_power_off_data;
//  = {
//     .close_data.task = NULL,
//     .close_data.flag = false,
//     .close_data.count = 0,
//     .close_data.num = 0,


//     .cont_main = NULL,
//     .task = NULL,
//     .anim_in = NULL,
//     .anim_out = NULL,
//     .anim_path_in = NULL,
//     .anim_path_out = NULL,
// };

void lvgl_power_off_ctrl_select(int num);
static void lvgl_power_off_set_text(lv_obj_t* obj,char* data);
static void lvgl_power_off_set_timed_shutdown(bool dat);

__lvgl_coord lvgl_power_off_select_coord_buf[] = {
    {5,10,270,70},
    {5,10,270,70},
    {5,10,270,70},

    {5,85,130,40},
    {2,85,130,40},
    {0,0,0,0},
};

lv_obj_t** lvgl_power_off_select_coord_obj_buf[] = {

    &lvgl_power_off_data.label1,
    &lvgl_power_off_data.label2,
    &lvgl_power_off_data.label3,
    &lvgl_power_off_data.label7,
    &lvgl_power_off_data.label8,
};

void lvgl_power_off_task_cb(lv_task_t* t)
{
    static int t0=0;
    if(lvgl_power_off_data.select_flag == true)
    {
        if(++lvgl_power_off_data.select_close_count>=2*5)
        {
            lvgl_power_off_data.select_close_count = 0;
            lvgl_power_off_data.select_flag = false;
            lvgl_power_off_ctrl_select(-1);
        }
    }

    if(lvgl_power_off_data.timed_shutdown_switch == true)
    {
        if(++t0>=2)
        {
            t0 =0;

            lvgl_power_off_data.s--;
            if(lvgl_power_off_data.s <= 0)
            {
                if(lvgl_power_off_data.m>=1)
                {
                    lvgl_power_off_data.m--;
                    lvgl_power_off_data.s = 59;
                }
            }
            if(lvgl_power_off_data.m <= 0)
            {
                if(lvgl_power_off_data.h>=1)
                {
                    lvgl_power_off_data.h--;
                    lvgl_power_off_data.m = 59;
                    lvgl_power_off_data.s = 59;
                }
            }

            if(lvgl_power_off_data.h <= 0)
            {
                if(lvgl_power_off_data.m==0&&lvgl_power_off_data.s==0)
                {
                    lvgl_power_off_data.h=0;
                    lvgl_power_off_data.m=0;
                    lvgl_power_off_data.s=0;

                    lvgl_power_off_debug("End of timing");
                    lvgl_power_off_data.timed_shutdown_switch = false;
                    lvgl_power_off_close_task(1);
                }
            }

            lvgl_power_off_set_text(lvgl_power_off_data.label1,&lvgl_power_off_data.h);
            lvgl_power_off_set_text(lvgl_power_off_data.label2,&lvgl_power_off_data.m);
            lvgl_power_off_set_text(lvgl_power_off_data.label3,&lvgl_power_off_data.s);
        }
    }
}
void lvgl_power_off_close_task_cb(lv_task_t* t)
{
    static uint8_t cnt = 0;
    if (lvgl_power_off_data.close_data.flag == true)
    {

        if (++cnt >= lvgl_power_off_data.close_data.count)
        {
            cnt = 0;
            lvgl_power_off_data.close_data.flag = false;
            lvgl_task_delete(&lvgl_power_off_data.close_data.task);

            if(lvgl_power_off_data.close_data.num == 0)
            {
                lvgl_power_off_anim_out_start(0, 350);

            }else
            if(lvgl_power_off_data.close_data.num == 1)
            {
                lvgl_power_off_anim_out_start(0, 350);
            }else
            if(lvgl_power_off_data.close_data.num == 2)
            {
                lvgl_power_off_anim_out_start(0, 250);
            }

        }

    }

}



void lvgl_power_off_ctrl_select(int num)
{
    lvgl_power_off_debug("ctrl select:%d", num);
    int x=0,y=0,w=0,h=0;
    int x1=0,y1=0,w1=0,h1=0;

    if(num == -1)
    {
        x=0;
        y=0;
        w=0;
        h=0;

    }else
    {
        w = lv_obj_get_width(*lvgl_power_off_select_coord_obj_buf[num]);
        h = lv_obj_get_height(*lvgl_power_off_select_coord_obj_buf[num]);

        lv_obj_set_width(lvgl_power_off_data.cont_select_auxiliary,w);
        lv_obj_set_height(lvgl_power_off_data.cont_select_auxiliary,h);

        lv_obj_align(lvgl_power_off_data.cont_select_auxiliary, *lvgl_power_off_select_coord_obj_buf[num], LV_ALIGN_CENTER, 0, 0);

        x = lv_obj_get_x(lvgl_power_off_data.cont_select_auxiliary);
        y = lv_obj_get_y(lvgl_power_off_data.cont_select_auxiliary);
    }

    lvgl_power_off_anim_select_x_start(x);
    lvgl_power_off_anim_select_y_start(y);
    lvgl_power_off_anim_select_w_start(w);
    lvgl_power_off_anim_select_h_start(h);

}


void lvgl_power_off_event_cb(struct _lv_obj_t* obj, lv_event_t event)
{
        if (obj == lvgl_power_off_data.cont_main)
        {

            //lvgl_power_off_debug("cb:%d", event);
            switch (event)
            {



            case LV_EVENT_KEY:

                switch (*(const uint32_t*)lv_event_get_data())
                {

                case LV_KEY_UP:
                    lvgl_power_off_debug("LV_KEY_UP");

                    break;
                case LV_KEY_DOWN:
                    lvgl_power_off_debug("LV_KEY_DOWN");

                    break;
                case LV_KEY_LEFT:
                    lvgl_power_off_debug("LV_KEY_LEFT");


                    lvgl_power_off_data.select_close_count=0;

                    if(lvgl_power_off_data.select_flag == false)
                    {
                        lvgl_power_off_data.select_flag = true;
                        lvgl_power_off_ctrl_select(lvgl_power_off_data.select_count);
                        break;
                    }

                    switch(lvgl_power_off_data.select_count)
                    {
                        case 0:
                            if(--lvgl_power_off_data.h<0)
                            {
                                lvgl_power_off_data.h=2;

                            }
                            lvgl_power_off_set_text(lvgl_power_off_data.label1,&lvgl_power_off_data.h);

                        break;
                        case 1:
                            if(--lvgl_power_off_data.m<0)
                            {
                                lvgl_power_off_data.m=59;

                            }
                            lvgl_power_off_set_text(lvgl_power_off_data.label2,&lvgl_power_off_data.m);

                        break;
                        case 2:
                            if(--lvgl_power_off_data.s<0)
                            {
                                lvgl_power_off_data.s=59;

                            }

                            lvgl_power_off_set_text(lvgl_power_off_data.label3,&lvgl_power_off_data.s);

                        break;
                        case 3:

                            lvgl_power_off_data.timed_shutdown_switch = false;

                            lvgl_power_off_data.h=0;
                            lvgl_power_off_data.m=0;
                            lvgl_power_off_data.s=0;



                            uint32_t user_data = LV_KEY_ESC;
                            lvgl_send_event(&lvgl_power_off_data.cont_main,LV_EVENT_KEY,&user_data);
                        break;
                        case 4:
                            if(lvgl_power_off_data.timed_shutdown == true)//倒计时关机
                            {
                                lvgl_power_off_data.timed_shutdown_switch = true;
                                lvgl_power_off_set_timed_shutdown(true);
                            }else//立即关机
                            {
                                lvgl_power_off_close_task(1);

                            }
                        break;
                    }

                    if(lvgl_power_off_data.h==0&&lvgl_power_off_data.m==0&&lvgl_power_off_data.s==0)
                    {
                        lvgl_power_off_set_timed_shutdown(false);
                    }else
                    {
                        lvgl_power_off_set_timed_shutdown(true);
                    }

                    break;
                case LV_KEY_RIGHT:
                    lvgl_power_off_debug("LV_KEY_RIGHT");


                    lvgl_power_off_data.select_close_count=0;
                    if(lvgl_power_off_data.select_flag == false)
                    {
                        lvgl_power_off_data.select_flag = true;
                        lvgl_power_off_ctrl_select(lvgl_power_off_data.select_count);
                        break;
                    }

                    switch(lvgl_power_off_data.select_count)
                    {
                        case 0:
                            if(++lvgl_power_off_data.h>2)
                            {
                                lvgl_power_off_data.h=0;

                            }
                            lvgl_power_off_set_text(lvgl_power_off_data.label1,&lvgl_power_off_data.h);

                        break;
                        case 1:
                            if(++lvgl_power_off_data.m>60)
                            {
                                lvgl_power_off_data.m=0;

                            }
                            lvgl_power_off_set_text(lvgl_power_off_data.label2,&lvgl_power_off_data.m);

                        break;
                        case 2:
                            if(++lvgl_power_off_data.s>60)
                            {
                                lvgl_power_off_data.s=0;

                            }
                            lvgl_power_off_set_text(lvgl_power_off_data.label3,&lvgl_power_off_data.s);

                        break;
                        case 3:

                            lvgl_power_off_data.timed_shutdown_switch = false;

                            lvgl_power_off_data.h=0;
                            lvgl_power_off_data.m=0;
                            lvgl_power_off_data.s=0;



                            uint32_t user_data = LV_KEY_ESC;
                            lvgl_send_event(&lvgl_power_off_data.cont_main,LV_EVENT_KEY,&user_data);
                        break;
                        case 4:
                            if(lvgl_power_off_data.timed_shutdown == true)//倒计时关机
                            {
                                lvgl_power_off_data.timed_shutdown_switch = true;
                                lvgl_power_off_set_timed_shutdown(true);
                            }else//立即关机
                            {
                                lvgl_power_off_close_task(1);

                            }
                        break;

                    }

                    if(lvgl_power_off_data.h==0&&lvgl_power_off_data.m==0&&lvgl_power_off_data.s==0)
                    {
                        lvgl_power_off_set_timed_shutdown(false);
                    }else
                    {
                        lvgl_power_off_set_timed_shutdown(true);
                    }

                    break;
                case LV_KEY_ESC:
                    lvgl_power_off_debug("LV_KEY_ESC");



                    lvgl_power_off_close_task(0);

                    break;
                case LV_KEY_DEL:
                    lvgl_power_off_debug("LV_KEY_DEL");

                    break;
                case LV_KEY_BACKSPACE:
                    lvgl_power_off_debug("LV_KEY_BACKSPACE");

                    break;
                case LV_KEY_ENTER:
                    lvgl_power_off_debug("LV_KEY_ENTER");

                    lvgl_power_off_data.select_close_count=0;


                    if(lvgl_power_off_data.select_flag == false)
                    {
                        lvgl_power_off_data.select_flag = true;
                        lvgl_power_off_ctrl_select(lvgl_power_off_data.select_count);
                        break;
                    }

                    if(++lvgl_power_off_data.select_count > 4)
                    {
                        lvgl_power_off_data.select_count = 0;
                    }
                    lvgl_power_off_ctrl_select(lvgl_power_off_data.select_count);

                    break;
                case LV_KEY_NEXT:
                    lvgl_power_off_debug("LV_KEY_NEXT");

                    break;
                case LV_KEY_PREV:
                    lvgl_power_off_debug("LV_KEY_PREV");

                    break;
                case LV_KEY_HOME:
                    lvgl_power_off_debug("LV_KEY_HOME");


                    break;
                case LV_KEY_END:
                    lvgl_power_off_debug("LV_KEY_END");
                    break;
                }

                break;



            case LV_EVENT_DELETE:

                lvgl_power_off_data.cont_main = NULL;
                lvgl_power_off_debug("delete win");
                break;

            case LV_EVENT_PRESSING://对象被持续按下

                break;
            case LV_EVENT_PRESSED://对象已被按下

                break;
            case LV_EVENT_DRAG_END://拖动结束后

                if (lv_obj_get_x(lvgl_power_off_data.cont_main) != 0)
                {
                    lv_obj_set_x(lvgl_power_off_data.cont_main, 0);
                }

                if (lv_obj_get_y(lvgl_power_off_data.cont_main) != 0)
                {
                    lv_obj_set_y(lvgl_power_off_data.cont_main, 0);
                }
                break;
            case LV_EVENT_RELEASED://按钮释放

            case LV_EVENT_LONG_PRESSED://按钮长按

                break;

            default:
                break;
            }
        }
}


void lvgl_power_off_create(lv_obj_t* parent)
{

    lvgl_power_off_data.select_count = 4;
    lvgl_power_off_data.select_flag = true;
    if (lvgl_power_off_data.cont_main == NULL)
    {

        //----创建容器----//
        lvgl_power_off_data.cont_main = lv_cont_create(parent, NULL);

        lv_obj_set_size(lvgl_power_off_data.cont_main, 280,130);

        lv_obj_set_click(lvgl_power_off_data.cont_main, true); //启用 / 禁用可点击
        lv_obj_set_drag(lvgl_power_off_data.cont_main, true);//启用/禁用对象可拖动
        lv_obj_set_drag_throw(lvgl_power_off_data.cont_main, true);//启用/禁用拖动后是否有惯性移动
        lv_obj_set_drag_parent(lvgl_power_off_data.cont_main, false); //启用 / 禁用父对象可拖动
        lv_obj_set_drag_dir(lvgl_power_off_data.cont_main, LV_DRAG_DIR_HOR);//设置拖动方向
        lv_obj_add_style(lvgl_power_off_data.cont_main, LV_OBJ_PART_MAIN, &lvgl_style.cont_no_border);
        lv_obj_set_event_cb(lvgl_power_off_data.cont_main, lvgl_power_off_event_cb);

        lv_obj_align(lvgl_power_off_data.cont_main, NULL, LV_ALIGN_CENTER, 0, 0);
        lvgl_power_off_data.main_cont_x = lv_obj_get_x(lvgl_power_off_data.cont_main);
        lvgl_power_off_data.main_cont_y = lv_obj_get_y(lvgl_power_off_data.cont_main);
        lv_obj_set_pos(lvgl_power_off_data.cont_main, lvgl_power_off_data.main_cont_x, -(lv_obj_get_height(parent)));


        lv_obj_set_style_local_bg_opa(lvgl_power_off_data.cont_main, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT,LV_OPA_90);
        lv_obj_set_style_local_radius(lvgl_power_off_data.cont_main, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT,20);

        lv_obj_set_style_local_bg_color(lvgl_power_off_data.cont_main, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_MAKE(0xc7, 0x5c, 0x5c));
        lv_obj_set_style_local_bg_grad_color(lvgl_power_off_data.cont_main, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_MAKE(0xc7, 0x5c, 0x5c));


        //----创建容器----//



        lvgl_power_off_data.cont_select = lv_cont_create(lvgl_power_off_data.cont_main, NULL);
        lv_obj_set_pos(lvgl_power_off_data.cont_select, 0, 0);
        lv_obj_set_size(lvgl_power_off_data.cont_select, 0, 0);
        lv_obj_add_style(lvgl_power_off_data.cont_select, LV_OBJ_PART_MAIN, &lvgl_style.cont_no_border);

        lv_obj_set_style_local_bg_color(lvgl_power_off_data.cont_select, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_GREEN);
        lv_obj_set_style_local_bg_grad_color(lvgl_power_off_data.cont_select, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_GREEN);
        lv_obj_set_style_local_bg_opa(lvgl_power_off_data.cont_select, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_20);
        lv_obj_set_style_local_radius(lvgl_power_off_data.cont_select, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, 10);



        lvgl_power_off_data.cont_select_auxiliary = lv_cont_create(lvgl_power_off_data.cont_main, NULL);
        lvgl_set_obj_hide(&lvgl_power_off_data.cont_select_auxiliary);


        lvgl_power_off_data.label1 = lv_label_create(lvgl_power_off_data.cont_main, NULL);
        lv_obj_set_pos(lvgl_power_off_data.label1, 0, 0);
        lv_label_set_long_mode(lvgl_power_off_data.label1, LV_LABEL_LONG_EXPAND);
        lv_obj_set_size(lvgl_power_off_data.label1, 240,130);
        lv_label_set_recolor(lvgl_power_off_data.label1, true);
        lv_label_set_align(lvgl_power_off_data.label1, LV_LABEL_ALIGN_CENTER);
        lv_label_set_recolor(lvgl_power_off_data.label1, true);
        lv_label_set_text(lvgl_power_off_data.label1, "00");
        lv_obj_add_style(lvgl_power_off_data.label1, LV_OBJ_PART_MAIN, &lvgl_style.font48_white_bg);
        lv_obj_align(lvgl_power_off_data.label1, NULL, LV_ALIGN_IN_TOP_LEFT, 5, 15);

        lvgl_power_off_data.label2 = lv_label_create(lvgl_power_off_data.cont_main, lvgl_power_off_data.label1);
        lv_label_set_text(lvgl_power_off_data.label2, "00");
        lv_obj_align(lvgl_power_off_data.label2, NULL, LV_ALIGN_IN_TOP_MID, -5, 15);

        lvgl_power_off_data.label3 = lv_label_create(lvgl_power_off_data.cont_main, lvgl_power_off_data.label1);
        lv_label_set_text(lvgl_power_off_data.label3, "00");
        lv_obj_align(lvgl_power_off_data.label3, NULL, LV_ALIGN_IN_TOP_RIGHT, -15, 15);

        lvgl_power_off_data.label4 = lv_label_create(lvgl_power_off_data.cont_main, lvgl_power_off_data.label1);
        lv_obj_add_style(lvgl_power_off_data.label4, LV_OBJ_PART_MAIN, &lvgl_style.font_changyong_12_white_bg);
        lv_label_set_text(lvgl_power_off_data.label4, lvgl_globa_text[71][system_get_Language()]);
        lv_obj_align(lvgl_power_off_data.label4, lvgl_power_off_data.label1, LV_ALIGN_OUT_RIGHT_BOTTOM, 0, -10);

        lvgl_power_off_data.label5 = lv_label_create(lvgl_power_off_data.cont_main, lvgl_power_off_data.label1);
        lv_obj_add_style(lvgl_power_off_data.label5, LV_OBJ_PART_MAIN, &lvgl_style.font_changyong_12_white_bg);
        lv_label_set_text(lvgl_power_off_data.label5, lvgl_globa_text[72][system_get_Language()]);
        lv_obj_align(lvgl_power_off_data.label5, lvgl_power_off_data.label2, LV_ALIGN_OUT_RIGHT_BOTTOM, 0, -10);

        lvgl_power_off_data.label6 = lv_label_create(lvgl_power_off_data.cont_main, lvgl_power_off_data.label1);
        lv_obj_add_style(lvgl_power_off_data.label6, LV_OBJ_PART_MAIN, &lvgl_style.font_changyong_12_white_bg);
        lv_label_set_text(lvgl_power_off_data.label6, lvgl_globa_text[73][system_get_Language()]);
        lv_obj_align(lvgl_power_off_data.label6, lvgl_power_off_data.label3, LV_ALIGN_OUT_RIGHT_BOTTOM, 0, -10);


        lvgl_power_off_data.label7 = lv_label_create(lvgl_power_off_data.cont_main, lvgl_power_off_data.label1);
        lv_obj_set_pos(lvgl_power_off_data.label7, 0, 0);
        lv_label_set_long_mode(lvgl_power_off_data.label7, LV_LABEL_LONG_SROLL);
        lv_obj_set_size(lvgl_power_off_data.label7, 130,40);
        lv_label_set_recolor(lvgl_power_off_data.label7, true);
        lv_label_set_align(lvgl_power_off_data.label7, LV_LABEL_ALIGN_CENTER);
        lv_label_set_recolor(lvgl_power_off_data.label7, true);
        lv_label_set_text(lvgl_power_off_data.label7, lvgl_globa_text[74][system_get_Language()]);
        lv_obj_add_style(lvgl_power_off_data.label7, LV_OBJ_PART_MAIN, &lvgl_style.font_changyong_24_white_bg);
        lv_obj_align(lvgl_power_off_data.label7,NULL, LV_ALIGN_IN_BOTTOM_LEFT, 5, 0);


        lvgl_power_off_data.label8 = lv_label_create(lvgl_power_off_data.cont_main, lvgl_power_off_data.label7);
        lv_label_set_text(lvgl_power_off_data.label8, lvgl_globa_text[75][system_get_Language()]);
        lv_obj_align(lvgl_power_off_data.label8, NULL, LV_ALIGN_IN_BOTTOM_RIGHT, -5, 0);


        lvgl_power_off_debug("create win");
    }
    else
    {

        lvgl_power_off_debug("show win");
    }

    lvgl_power_off_set_text(lvgl_power_off_data.label1,&lvgl_power_off_data.h);
    lvgl_power_off_set_text(lvgl_power_off_data.label2,&lvgl_power_off_data.m);
    lvgl_power_off_set_text(lvgl_power_off_data.label3,&lvgl_power_off_data.s);


    lvgl_power_off_ctrl_select(lvgl_power_off_data.select_count);


    lvgl_task_create(&lvgl_power_off_data.task,lvgl_power_off_task_cb, 500, LV_TASK_PRIO_HIGH, NULL);

    lv_obj_move_foreground(lvgl_power_off_data.cont_main);
    lvgl_set_obj_show(&lvgl_power_off_data.cont_main);

    lvgl_power_off_anim_in_start(0, 0);


}
static void lvgl_power_off_set_timed_shutdown(bool dat)
{
    lvgl_power_off_data.timed_shutdown = dat;

    if(dat == false)
    {
        lv_label_set_text(lvgl_power_off_data.label8, lvgl_globa_text[75][system_get_Language()]);
        lv_obj_align(lvgl_power_off_data.label8, NULL, LV_ALIGN_IN_BOTTOM_RIGHT, -5, 0);
    }else
    if(dat == true)
    {

        if(lvgl_power_off_data.timed_shutdown_switch == true)
        {
            lv_label_set_text(lvgl_power_off_data.label8, lvgl_globa_text[77][system_get_Language()]);
            lv_obj_align(lvgl_power_off_data.label8, NULL, LV_ALIGN_IN_BOTTOM_RIGHT, -5, 0);

        }else
        {
            lv_label_set_text(lvgl_power_off_data.label8, lvgl_globa_text[76][system_get_Language()]);
            lv_obj_align(lvgl_power_off_data.label8, NULL, LV_ALIGN_IN_BOTTOM_RIGHT, -5, 0);
        }




    }


}

static void lvgl_power_off_set_text(lv_obj_t* obj,char* data)
{
    sprintf(lvgl_power_off_data.p_buf,"%02d",*data);
    lv_label_set_text(obj, lvgl_power_off_data.p_buf);
    //lv_obj_align(lvgl_power_off_data.label1, NULL, LV_ALIGN_CENTER, 0, 0);
}

void lvgl_power_off_hidden(void)
{

}

void lvgl_power_off_close(void)
{
    lvgl_power_off_debug("close");
    lvgl_group_remove_obj(&lvgl_power_off_data.cont_main);

    lvgl_group_focus_save_obj();

    if(lvgl_power_off_data.timed_shutdown_switch == false)
    {
        lvgl_task_delete(&lvgl_power_off_data.task);

        lvgl_obj_clean(&lvgl_power_off_data.cont_main);
        lvgl_obj_del(&lvgl_power_off_data.cont_main);
    }else
    {
        lvgl_set_obj_hide(&lvgl_power_off_data.cont_main);
    }


    if(lvgl_power_off_data.close_data.num == 0)//正常退出
    {


    }else
    if(lvgl_power_off_data.close_data.num == 1)//关机退出
    {

        system_power_off();

    }else
    if(lvgl_power_off_data.close_data.num == 2)//倒计时中退出
    {


    }
}


void lvgl_power_off_close_task(int num)
{
    lvgl_power_off_data.close_data.flag = true;
    lvgl_power_off_data.close_data.count = 1;
    lvgl_power_off_data.close_data.num = num;
    lvgl_task_create(&lvgl_power_off_data.close_data.task, lvgl_power_off_close_task_cb, 10, LV_TASK_PRIO_HIGH, NULL);
}



